package com.sky.demo.entity;

import org.realogic.cfm.domain.KEntity;

/**
 * 产品-实体对象
 */
public class EntityProduct implements KEntity {

	private static final long serialVersionUID = 3011167661398049813L;
	// 商品ID
	private Long id;
	// 商品编码
	private String code;
	// 商品名称
	private String name;
	// 商品助记码
	private String helpcode;
	// 商品简称
	private String shortname;
	// 规格型号
	private String spec;
	// 备注
	private String remark;
	// 次序号
	private long sortvalue;
	// 创建日期
	private java.sql.Timestamp createdOn;
	// 创建者ID
	private String createdID;
	// 创建者
	private String createdBy;
	// 最近修改日期
	private java.sql.Timestamp updatedOn;
	// 修改者ID
	private String updatedID;
	// 修改者
	private String updatedBy;

	public EntityProduct() {

	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long aId) {
		this.id = aId;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String aCode) {
		this.code = aCode;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String aName) {
		this.name = aName;
	}

	public String getHelpcode() {
		return this.helpcode;
	}

	public void setHelpcode(String aHelpcode) {
		this.helpcode = aHelpcode;
	}

	public String getShortname() {
		return this.shortname;
	}

	public void setShortname(String aShortname) {
		this.shortname = aShortname;
	}

	public String getSpec() {
		return this.spec;
	}

	public void setSpec(String aSpec) {
		this.spec = aSpec;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String aRemark) {
		this.remark = aRemark;
	}

	public long getSortvalue() {
		return this.sortvalue;
	}

	public void setSortvalue(long aSortvalue) {
		this.sortvalue = aSortvalue;
	}

	public java.sql.Timestamp getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(java.sql.Timestamp aCreatedOn) {
		this.createdOn = aCreatedOn;
	}

	public String getCreatedID() {
		return this.createdID;
	}

	public void setCreatedID(String aCreatedID) {
		this.createdID = aCreatedID;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String aCreatedBy) {
		this.createdBy = aCreatedBy;
	}

	public java.sql.Timestamp getUpdatedOn() {
		return this.updatedOn;
	}

	public void setUpdatedOn(java.sql.Timestamp aUpdatedOn) {
		this.updatedOn = aUpdatedOn;
	}

	public String getUpdatedID() {
		return this.updatedID;
	}

	public void setUpdatedID(String aUpdatedID) {
		this.updatedID = aUpdatedID;
	}

	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String aUpdatedBy) {
		this.updatedBy = aUpdatedBy;
	}

	public String toString() {
		StringBuffer returnString = new StringBuffer();
		returnString.append("com.sky.demo.entity.EntityProduct[");
		returnString.append("id = " + this.id + ";\n");
		returnString.append("code = " + this.code + ";\n");
		returnString.append("name = " + this.name + ";\n");
		returnString.append("helpcode = " + this.helpcode + ";\n");
		returnString.append("shortname = " + this.shortname + ";\n");
		returnString.append("spec = " + this.spec + ";\n");
		returnString.append("remark = " + this.remark + ";\n");
		returnString.append("sortvalue = " + this.sortvalue + ";\n");
		returnString.append("createdOn = " + this.createdOn + ";\n");
		returnString.append("createdID = " + this.createdID + ";\n");
		returnString.append("createdBy = " + this.createdBy + ";\n");
		returnString.append("updatedOn = " + this.updatedOn + ";\n");
		returnString.append("updatedID = " + this.updatedID + ";\n");
		returnString.append("updatedBy = " + this.updatedBy + ";\n");
		returnString.append("]\n");
		return returnString.toString();
	}

	/******************* 辅助方法 *******************/
	/*
	 * 实体Key字符
	 */
	public String getKey() {
		if (id == null || id == 0) {
			return null;
		} else {
			return String.valueOf(id);
		}
	}
}